<#macro header>
<nav class="w1200 z-nav">
    <img src="${ctx}/img/tit.png" class="pull-left" style="margin-top:20px;">
    <ul class="nav-right">
        <li class="<#if navEle?? && navEle=='index'>active</#if>">
            <a class="nav-first" href="${ctx}/">首页</a>
        </li>
        <#--<li class="<#if navEle?? && navEle=='ps'>active</#if>">
            <a class="nav-first" href="${ctx}/product_service/index.html">产品服务</a>
        </li>-->
        <li class="<#if navEle??&&navEle=='open'>active</#if>">
            <a class="nav-first" href="${ctx}/product_service/openInterface">接口列表</a>
        </li>
        <li class="<#if navEle?? && navEle=='cusEx'>active</#if>">
            <a class="nav-first" href="${ctx}/product_service/goCustomerIndex.html">客户案例</a>
        </li>
        <li class="<#if navEle?? && navEle=='client_manager'>active</#if>">
            <a class="nav-first" href="${ctx}/product_service/client_manager">行业动态</a>
        </li>
        <#--<li class="">
            <a class="nav-first" href="">互动社区</a>
        </li>-->
            <li class="">
                <a class="nav-first" href="${ctx}/login.html"><span class="loging">登录</span></a>
            </li>
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                <img alt="image" class="img-circle" src="${ctx}/adminRes/img/profile_small.jpg" /><img alt="image" src="${ctx}/img/downarrow-1.png" style="margin: 30px 0px 0px 10px"/>
            </a>
            <ul class="dropdown-menu dropdown-alerts">
                <li style="padding-left: 26px;">
                    欢迎您，<#if loginUser?exists>${loginUser.userName}</#if>!
                </li>
                <li class="divider" style="display: block;margin: 7px 0;"></li>
                <li style="padding-left: 50px;" class="hov1" onclick="doUrl('${ctx}/admin/yhzx/grxx/list.html')">
                    我的管理中心
                </li>
                    <li style="padding-left: 50px;" class="hov1" onclick="doUrl('${ctx}/customer/stat/personal.html')">
                        我的管理中心
                    </li>
                    <li style="padding-left: 50px;" class="hov1" onclick="doUrl('${ctx}/industry/grxx/list.html')">
                        我的管理中心
                    </li>
                    <li style="padding-left: 50px;" class="hov1" onclick="doUrl('${ctx}/usermanager/yhzx/grxx/list.html')">
                        我的管理中心
                    </li>
                <li style="padding-left: 50px;" class="hov2" onclick="doUrl('${ctx}/logout.html')">
                    退出帐号
                </li>
            </ul>
        </li>
    </ul>
</nav>
<script>
    function doUrl(url) {
        window.location=url;
    }
</script>
</#macro>

<#macro footer>

<footer class="z-footer clear" id="footer">
    <div class="w1000 tc footer-arc f14">苏ICP备11008151号-21 © 2017 All rights reserved</div>
</footer>

<style>
    #footer{
        bottom: 0px;
    }
</style>
</#macro>

<#macro city_select>
<div class="col-sm-10">
    <select name="city_name" value="" class="form-control">
        <#list citymodels as citymodel>
            <#if (user.city_name)??&&user.city_name==citymodel.city_name>
                <option value="${citymodel.city_name}" selected="selected">${citymodel.city_name}</option>
            <#else>
            <option value="${citymodel.city_name}" >${citymodel.city_name}</option>
        </#if>
        </#list>
    </select>
</div>
</#macro>

<#macro resources>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<#assign ctx=request.contextPath />
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<title>智金融平台</title>
<!-- Bootstrap -->
<link href="${ctx}/lib/bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="${ctx}/css/newOpenStyle.css" rel="stylesheet">
<link href="${ctx}/css/animate.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="${ctx}/js/html5shiv.min.js"></script>
<script src="${ctx}/js/respond.min.js"></script>
<![endif]-->
<script src="${ctx}/js/jquery.min.js"></script>
<script src="${ctx}/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>

<script src="${ctx}/lib/layer-v3.0/layer/layer.js"></script>
<script src="${ctx}/lib/jQueryExt.js"></script>
<script src="${ctx}/js/jquery.dataTables.js"></script>
<script src="${ctx}/js/jquery.form.js"></script>
<script src="${ctx}/js/handlebars-1.0.0.beta.6.js"></script>
<script src="${ctx}/js/dataTables.bootstrap.js"></script>
<script src="${ctx}/js/dataTables.responsive.js"></script>
<script src="${ctx}/js/dataTables.tableTools.min.js"></script>
<script src="${ctx}/lib/MK.js"></script>
<script src="${ctx}/js/md5.js"></script>

<script language="javascript">
    var ctx = "${ctx}";
</script>
</#macro>

<!--admin-->
<#macro adminRes>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
    <#assign ctx=request.contextPath />
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<title>智金融平台</title>
<!-- Bootstrap -->
<link href="${ctx}/adminRes/css/bootstrap.min.css" rel="stylesheet">
<link href="${ctx}/adminRes/font-awesome/css/font-awesome.css" rel="stylesheet">
<link href="${ctx}/lib/bootstrapvalidator/css/bootstrapValidator.min.css" rel="stylesheet">
<!-- Data Tables -->
<link href="${ctx}/adminRes/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
<link href="${ctx}/adminRes/css/plugins/dataTables/dataTables.responsive.css" rel="stylesheet">
<link href="${ctx}/adminRes/css/plugins/dataTables/dataTables.tableTools.min.css" rel="stylesheet">
<link href="${ctx}/adminRes/css/animate.css" rel="stylesheet">
<link href="${ctx}/adminRes/css/style.css" rel="stylesheet">

<script src="${ctx}/lib/bootstrapvalidator/js/jquery.min.js"></script>
<script src="${ctx}/adminRes/js/bootstrap.min.js"></script>
<script src="${ctx}/lib/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
<script src="${ctx}/adminRes/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="${ctx}/adminRes/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="${ctx}/adminRes/js/plugins/jeditable/jquery.jeditable.js"></script>

<!-- Data Tables -->
<script src="${ctx}/adminRes/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="${ctx}/adminRes/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="${ctx}/adminRes/js/plugins/dataTables/dataTables.responsive.js"></script>
<script src="${ctx}/adminRes/js/plugins/dataTables/dataTables.tableTools.min.js"></script>
<!--laydate-->
<script src="${ctx}/lib/laydate/laydate.js"></script>
<!-- Custom and plugin javascript -->
<script src="${ctx}/adminRes/js/inspinia.js"></script>
<script src="${ctx}/adminRes/js/plugins/pace/pace.min.js"></script>
<script src="${ctx}/adminRes/js/handlebars-1.0.0.beta.6.js"></script>
<script src="${ctx}/lib/layer-v3.0/layer/layer.js"></script>
<script src="${ctx}/lib/jQueryExt.js"></script>
<script src="${ctx}/lib/echarts.min.js"></script>
 <script src="${ctx}/js/jquery.form.js"></script>
<script src="${ctx}/lib/MK.js"></script>


<link href="${ctx}/adminRes/css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">
<link href="${ctx}/adminRes/css/plugins/chartist/chartist.min.css" rel="stylesheet">
<script src="${ctx}/js/md5.js"></script>

<script language="javascript">
    var ctx = "${ctx}";
    var token = "${tokens}"
</script>
</#macro>

<#macro adminContent firstMenu="yhzx" secondMenu="grxx">
<div id="wrapper">
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav metismenu" id="side-menu">
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <span>
                            <img src="${ctx}/adminRes/img/tit.png" style="width: 170px;">
                        </span>
                    </div>
                </li>
                <li class="<#if firstMenu?? && firstMenu=='yhzx'>active</#if>">
                    <a href="#"><i class="fa fa-flask"></i><span class="nav-label">用户中心</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <@shiro.hasRole name="admin">
                            <li class="<#if secondMenu?? && secondMenu=='grxx'>active</#if>"><a href="${ctx}/admin/yhzx/grxx/list.html">个人信息</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='qygl'>active</#if>"><a href="${ctx}/admin/yhzx/qygl/list.html">签约管理</a></li>
                            <#--<li class="<#if secondMenu?? && secondMenu=='khgl'>active</#if>"><a href="${ctx}/admin/yhzx/khgl/list.html">客户管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='khjlgl'>active</#if>"><a href="${ctx}/admin/yhzx/khjlgl/list.html">客户经理管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='fwcx'>active</#if>"><a href="${ctx}/admin/yhzx/fwcx/list.html">服务查询</a></li>-->
                        </@shiro.hasRole>
                        <@shiro.hasRole name="customer">
                            <li class="<#if secondMenu?? && secondMenu=='grxx'>active</#if>"><a href="${ctx}/customer/stat/personal.html">个人信息</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='qxgl'>active</#if>"><a href="${ctx}/customer/stat/signlist.html">签约管理</a></li>
                            <#--<li class="<#if secondMenu?? && secondMenu=='khgl'>active</#if>"><a href="${ctx}/customer/stat/khgl.html">客户管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='fwcx'>active</#if>"><a href="#">服务查询</a></li>-->
                        </@shiro.hasRole>
                        <@shiro.hasRole name="industry">
                            <li class="<#if secondMenu?? && secondMenu=='grxx'>active</#if>"><a href="${ctx}/industry/grxx/list.html">个人信息</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='qxgl'>active</#if>"><a href="${ctx}/industry/stat/list.html">签约管理</a></li>
                            <#--<li class="<#if secondMenu?? && secondMenu=='fwcx'>active</#if>"><a href="${ctx}/industry/fwcx/list.html">服务查询</a></li>-->
                        </@shiro.hasRole>
                        <@shiro.hasRole name="usermanager">
                            <li class="<#if secondMenu?? && secondMenu=='grxx'>active</#if>"><a href="${ctx}/usermanager/yhzx/grxx/list.html">个人信息</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='qygl'>active</#if>"><a href="${ctx}/usermanager/yhzx/qygl/list.html">签约管理</a></li>
                            <#--<li class="<#if secondMenu?? && secondMenu=='khgl'>active</#if>"><a href="${ctx}/usermanager/yhzx/khgl/list.html">客户管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='khjlgl'>active</#if>"><a href="${ctx}/usermanager/yhzx/khjlgl/list.html">客户经理管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='fwcx'>active</#if>"><a href="${ctx}/usermanager/yhzx/fwcx/list.html">服务查询</a></li>-->
                        </@shiro.hasRole>

                    </ul>
                </li>

                <@shiro.hasRole name="admin">
                <li class="<#if firstMenu?? && firstMenu=='khgl'>active</#if>">
                    <a href="#"><i class="fa fa-flask"></i><span class="nav-label">客户管理</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <#--<@shiro.hasRole name="admin">-->
                            <li class="<#if secondMenu?? && secondMenu=='khxx'>active</#if>"><a href="${ctx}/admin/yhzx/khgl/list.html">客户信息</a></li>
                            <#--<li class="<#if secondMenu?? && secondMenu=='dgqk'>active</#if>"><a href="${ctx}/admin/yhzx/dgqk/list.html">订购情况</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='yyfx'>active</#if>"><a href="${ctx}/admin/yhzx/yyfx/list.html">运营分析</a></li>-->
                        <#--</@shiro.hasRole>-->
                    </ul>
                </li>
                </@shiro.hasRole>

                <@shiro.hasRole name="customer">
                <li class="<#if firstMenu?? && firstMenu=='khgl'>active</#if>">
                    <a href="#"><i class="fa fa-flask"></i><span class="nav-label">客户管理</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <#--<@shiro.hasRole name="customer">-->
                            <li class="<#if secondMenu?? && secondMenu=='khxx'>active</#if>"><a href="${ctx}/customer/stat/khgl.html">客户信息</a></li>
                        <#--<li class="<#if secondMenu?? && secondMenu=='dgqk'>active</#if>"><a href="${ctx}/customer/stat/dgqk/list.html">订购情况</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='yyfx'>active</#if>"><a href="${ctx}/customer/stat/yyfx/list.html">运营分析</a></li>-->
                        <#--</@shiro.hasRole>-->
                    </ul>
                </li>
                </@shiro.hasRole>

                <@shiro.hasRole name="usermanager">
                <li class="<#if firstMenu?? && firstMenu=='khgl'>active</#if>">
                    <a href="#"><i class="fa fa-flask"></i><span class="nav-label">客户管理</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                       <#-- <@shiro.hasRole name="usermanager">-->
                            <li class="<#if secondMenu?? && secondMenu=='khxx'>active</#if>"><a href="${ctx}/usermanager/yhzx/khgl/list.html">客户信息</a></li>
                        <#--<li class="<#if secondMenu?? && secondMenu=='dgqk'>active</#if>"><a href="${ctx}/usermanager/yhzx/dgqk/list.html">订购情况</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='yyfx'>active</#if>"><a href="${ctx}/usermanager/yhzx/yyfx/list.html">运营分析</a></li>-->
                        <#--</@shiro.hasRole>-->

                    </ul>
                </li>
                </@shiro.hasRole>

                <li class="<#if firstMenu?? && firstMenu=='tjfx'>active</#if>">
                    <a href="#"><i class="fa fa-table"></i><span class="nav-label">统计分析</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">`
                        <@shiro.hasRole name="admin">
                            <li class="<#if secondMenu?? && secondMenu=='ywfx'>active</#if>"><a href="${ctx}/admin/stat/business.html">业务统计</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='fxbb'>active</#if>"><a href="${ctx}/admin/stat/report.html">分析报表</a></li>
                        </@shiro.hasRole>
                        <@shiro.hasRole name="industry">
                            <li class="<#if secondMenu?? && secondMenu=='ywfx'>active</#if>"><a href="${ctx}/industry/stat/business.html">业务统计</a></li>
                        </@shiro.hasRole>
                        <@shiro.hasRole name="customer">
                            <li class="<#if secondMenu?? && secondMenu=='ywfx'>active</#if>"><a href="${ctx}/customer/stat/business.html">业务统计</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='fxbb'>active</#if>"><a href="${ctx}/customer/stat/report.html">分析报表</a></li>
                        </@shiro.hasRole>
                        <@shiro.hasRole name="usermanager">
                            <li class="<#if secondMenu?? && secondMenu=='ywfx'>active</#if>"><a href="${ctx}/usermanager/stat/business.html">业务统计</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='fxbb'>active</#if>"><a href="${ctx}/usermanager/stat/report.html">分析报表</a></li>
                        </@shiro.hasRole>
                    </ul>
                </li>
                <@shiro.hasRole name="admin">
                <li class="<#if firstMenu?? && firstMenu=='qxgl'>active</#if>">
                    <a href="#"><i class="fa fa-laptop"></i> <span class="nav-label">权限管理</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <li class="<#if secondMenu?? && secondMenu=='yhgl'>active</#if>"><a
                                href="${ctx}/admin/user/list.html">用户管理</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='jsgl'>active</#if>"><a
                                href="${ctx}/admin/role/list.html">角色管理</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='khjlgl'>active</#if>"><a
                                href="${ctx}/admin/yhzx/khjlgl/list.html">客户经理管理</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='cpgl'>active</#if>"><a
                                href="${ctx}/admin/product/list.html">产品管理</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='cpdg'>active</#if>"><a
                                href="${ctx}/admin/product/to_order.html">产品订购</a></li>
                    </ul>
                </li>
                <li class="<#if firstMenu?? && firstMenu=='pzgl'>active</#if>">
                    <a href="#"><i class="fa fa-cog"></i> <span class="nav-label">配置管理</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse">
                        <li class="<#if secondMenu?? && secondMenu=='zdgl'>active</#if>"><a
                                href="${ctx}/admin/dict/list.html">字典管理</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='cplx'>active</#if>"><a
                                href="${ctx}/admin/productType/list.html">产品类型</a></li>
                        <li class="<#if secondMenu?? && secondMenu=='dyh'>active</#if>"><a
                                href="${ctx}/admin/subscription/list.html">订阅号</a></li>
                    </ul>
                </li>
                </@shiro.hasRole>
                <@shiro.hasRole name="usermanager">
                    <li class="<#if firstMenu?? && firstMenu=='qxgl'>active</#if>">
                        <a href="#"><i class="fa fa-laptop"></i> <span class="nav-label">权限管理</span><span
                                class="fa arrow"></span></a>
                        <ul class="nav nav-second-level collapse">
                            <li class="<#if secondMenu?? && secondMenu=='yhgl'>active</#if>"><a
                                    href="${ctx}/usermanager/user/list.html">用户管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='cpgl'>active</#if>"><a
                                    href="${ctx}/usermanager/product/list.html">产品管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='jsgl'>active</#if>"><a
                                    href="${ctx}/usermanager/role/list.html">角色管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='khjlgl'>active</#if>"><a
                                    href="${ctx}/usermanager/yhzx/khjlgl/list.html">客户经理管理</a></li>
                            <li class="<#if secondMenu?? && secondMenu=='cpdg'>active</#if>"><a
                                    href="${ctx}/usermanager/product/to_order.html">产品订购</a></li>
                        </ul>
                    </li>
                </@shiro.hasRole>
            </ul>
        </div>
    </nav>

    <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header" id="menu">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i></a>
                </div>
             <#--   <div class="col-lg-10">
                    <h2>个人信息</h2>
                    <ol class="breadcrumb">
                      &lt;#&ndash;  <li>
                            <a href="#">管理中心</a>
                        </li>&ndash;&gt;
                        <li>
                            <a>用户中心</a>
                        </li>
                        <li class="active_text">
                            <a>个人信息</a>
                        </li>
                    </ol>
                </div>-->
                <ul class="nav navbar-top-links navbar-right">
                    <li class="dropdown">
                        <a class="count-info" href="#">
                            <img alt="image" class="img-circle"
                                 src="${ctx}/adminRes/img/profile_small.jpg"/><span>&nbsp;&nbsp; <#if loginUser?exists>${loginUser.userName}</#if></span>
                        </a>
                        <ul class="dropdown-menu dropdown-alerts">
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-envelope fa-fw"></i> You have 16 messages
                                        <span class="pull-right text-muted small">4 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-twitter fa-fw"></i> 3 New Followers
                                        <span class="pull-right text-muted small">12 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="#">
                                    <div>
                                        <i class="fa fa-upload fa-fw"></i> Server Rebooted
                                        <span class="pull-right text-muted small">4 minutes ago</span>
                                    </div>
                                </a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <div class="text-center link-block">
                                    <a href="#">
                                        <strong>See All Alerts</strong>
                                        <i class="fa fa-angle-right"></i>
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="${ctx}/">
                            <i class="fa fa-sign-out"></i>返回
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        <!--内容开始-->
        <#nested>
        <!--内容结束-->
        <#--<div class="">
            <div>苏ICP备11008151号-21 © 2017 All rights reserved</div>
        </div>-->
    </div>
</div>
</#macro>